<template>
	<div id="app">
		<!-- //index页面要缓存 -->
		<keep-alive>
			<router-view v-if="$route.meta.keepAlive"></router-view>
		</keep-alive>
		<router-view v-if="!$route.meta.keepAlive"></router-view>
		<!-- <index></index> -->
	</div>
</template>
<script>
	import index from "./index.vue"
	export default {
		name: 'App',
		components: {
			index
		},
		mounted() {
			let activePath = window.sessionStorage.getItem('activePath');
			console.log('app中', activePath)
			if (activePath) {
				this.$router.push({
					path: activePath
				})
			} else {
				this.$router.push({
					path: '/Index'
				})
			}


		}
	}
</script>

<style>

</style>
